<%@ page import="MypageController.MyWrite.MyWriteBean" %>
<%@ page import="MypageController.MyMain.MyMainBean" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
MyWriteBean entries[] = (MyWriteBean[])request.getAttribute("entries");
MyMainBean mypagedata = (MyMainBean)request.getAttribute("mypagedata");
int mypageid = (Integer)request.getAttribute("mypageid");
String id = (String)request.getAttribute("id");
String divide = (String)request.getAttribute("divide");
int level = (Integer)request.getAttribute("level");
String color;
if(level == 1){
	color = "#60b615";
}else{
	color = "#0f89d2";
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/KOMORIUTA/Mypage/Css/MpBord.css"> 
<link rel="STYLESHEET" type="text/css" href="/KOMORIUTA/page/page.css">

<script src="/KOMORIUTA/Massage/Ms_Script.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Mypage/Mp_Script.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Mypage/jquery.js" type="text/JavaScript"></script>
</head>
<body id="body">
<form id="entries"  method="post" action="/KOMORIUTA/MyKategoreServ.do">
<input type="hidden" name="action" value="<%=divide %>" />
<input type="hidden" name="id" value="<%=id %>" />
<input type="hidden" name="mypageid" value="<%=mypageid %>"/>
<input type="hidden" name="kategore" value="<%=entries[0].getEnt_Kategorie()%>"/>
<input type="hidden" name="kategoredate" value="<%=entries[0].getEnt_Date()%>"/>
<input type="hidden" id="currentPage" name="currentPage" />

<table align="center" width="696" height="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="2" align="center" width="100%" height="100" background="<%=request.getContextPath() %>/Mypage/image/topskin.jpg" style="border-right: 2px solid <%=color %>; border-bottom: 2px solid <%=color %>">
			<table width="100%"cellpadding="0" cellspacing="0">
				<tr height="20%"><td>&nbsp;</td></tr>
				
				<tr align="center">
					<td width="80%">
						<h1><%=mypagedata.getBlog_Tilte()%></h1>
					</td>
				</tr>
				
				<tr>
					<td align="right" valign="bottom" >
						<%=mypagedata.getBlog_Intro() %>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	
	<tr>
		<td align="right" valign="middle" colspan="2">
			<a href=javascript:startPage("<%=id%>","<%=0%>")>
			
			
				<!-- 
				<% if(level == 1){ %>共有者
				<% }else{ %>製作者<% }%>[<%=id%>]
				 -->
			
			
				<img alt="" src="<%=request.getContextPath() %>/Main/image/Blog_My.png">
			</a>　
			<a href=javascript:entriWrite('<%=id%>',<%=mypageid%>)> 
				<img alt="" src="<%=request.getContextPath() %>/Main/image/Blog_Wr.png">
			</a>　
				<% if(level == 2){ %>
			<a href=javascript:manage('<%=id%>',<%=mypageid%>)>
				<img alt="" src="<%=request.getContextPath() %>/Main/image/Blog_Ad.png">
			</a>
				<% } %>
			
		</td>
	</tr>
	<tr>
		<td style="border-bottom: 2px solid <%=color %>" colspan="2">
			<h2>カテゴリー<% if(divide.equals("kategorie")){ %><%if(entries[0].getEnt_Kategorie().equals("")){ %> [分類無]<%}else{%> [<%=entries[0].getEnt_Kategorie()%>]<% }}else{ %> [<%=entries[0].getEnt_Date()%>]<% } %></h2>	
		</td>
	</tr>
	<tr height="10"><td>&nbsp;</td></tr>
	
	<tr>
		<td colspan="2">
			<table width="100%">
				
				
			
			<% for(int i = 0; i < entries.length; i++){ %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tr><td onmouseover="this.style.backgroundColor='<%=color %>'" onmouseout="this.style.backgroundColor=''" style="border-bottom: 1px solid #e5e5e5">
    		<a href=javascript:page("<%=id%>","<%=entries[i].getEnt_Number()%>","<%=entries[i].getID()%>") class="black">ㆍ&nbsp;&nbsp;<%=entries[i].getEnt_Title() %> [<%=entries[i].getEnt_ComCount() %>]<%=entries[i].getEnt_DateString() %></a> 
    		<% } %> </td></tr></table>
		</td>
		
	</tr>
	
	<tr>
		<td width="80">
		
		</td>
		<td>
			<%=request.getAttribute("paging") %>
		</td>
	</tr>
</table>
</form>
</body>
</html>